package com.bike.modules.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author linyuc
 * @Description TODO
 * @date 2022/1/19 23:52
 */
@Data
public class OrderReturnDTO implements Serializable {
    @ApiModelProperty(value="订单id")
    private Integer id;

    @ApiModelProperty(value="订单号")
    private Long orderNo;

    @ApiModelProperty(value="用户id")
    private Integer userId;

    @ApiModelProperty(value="单车id")
    private String bikeNo;

    @ApiModelProperty(value="使用时间（分钟）")
    private Integer time;

    @ApiModelProperty(value="费用")
    private BigDecimal cost;

    @ApiModelProperty(value="支付类型,1-微信支付,2支付宝支付3,到付")
    private String payType;

    @ApiModelProperty(value="开始单车经度")
    private BigDecimal startLng;

    @ApiModelProperty(value="开始单车纬度")
    private BigDecimal startLat;

    @ApiModelProperty(value="结束单车经度")
    private BigDecimal endLng;

    @ApiModelProperty(value="结束单车纬度")
    private BigDecimal endLat;

    @ApiModelProperty(value="骑行里程")
    private BigDecimal mileage;

    @ApiModelProperty(value="订单备注")
    private String remark;

    @ApiModelProperty(value="订单状态，1：待支付，2：已支付")
    private Integer status;

    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;

    private String starParkName;

    private String endParkName;

    private String username;

    private String commentContent;
}
